package com.kaba.exception;

import com.kaba.bean.ResultCode;

/**
 * 自定义异常类
 */
public class CustomException extends RuntimeException{
    private ResultCode resultCode;

    public CustomException(ResultCode resultCode) {
        this.resultCode = resultCode;
    }

    public ResultCode getResultCode() {
        return resultCode;
    }

    public void setResultCode(ResultCode resultCode) {
        this.resultCode = resultCode;
    }

    @Override
    public String toString() {
        return "CustomException{" +
                "resultCode=" + resultCode +
                '}';
    }
}
